package com.xian.relics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.relics.mapper.TCulturalRelicsMapper;
import com.xian.relics.domain.TCulturalRelics;
import com.xian.relics.service.ITCulturalRelicsService;

/**
 * 文物信息Service业务层处理
 * 
 * @author jimihua
 * @date 2025-04-01
 */
@Service
public class TCulturalRelicsServiceImpl implements ITCulturalRelicsService 
{
    @Autowired
    private TCulturalRelicsMapper tCulturalRelicsMapper;

    /**
     * 查询文物信息
     * 
     * @param id 文物信息主键
     * @return 文物信息
     */
    @Override
    public TCulturalRelics selectTCulturalRelicsById(Long id)
    {
        return tCulturalRelicsMapper.selectTCulturalRelicsById(id);
    }

    /**
     * 查询文物信息列表
     * 
     * @param tCulturalRelics 文物信息
     * @return 文物信息
     */
    @Override
    public List<TCulturalRelics> selectTCulturalRelicsList(TCulturalRelics tCulturalRelics)
    {
        return tCulturalRelicsMapper.selectTCulturalRelicsList(tCulturalRelics);
    }

    /**
     * 新增文物信息
     * 
     * @param tCulturalRelics 文物信息
     * @return 结果
     */
    @Override
    public int insertTCulturalRelics(TCulturalRelics tCulturalRelics)
    {
        return tCulturalRelicsMapper.insertTCulturalRelics(tCulturalRelics);
    }

    /**
     * 修改文物信息
     * 
     * @param tCulturalRelics 文物信息
     * @return 结果
     */
    @Override
    public int updateTCulturalRelics(TCulturalRelics tCulturalRelics)
    {
        return tCulturalRelicsMapper.updateTCulturalRelics(tCulturalRelics);
    }

    /**
     * 批量删除文物信息
     * 
     * @param ids 需要删除的文物信息主键
     * @return 结果
     */
    @Override
    public int deleteTCulturalRelicsByIds(Long[] ids)
    {
        return tCulturalRelicsMapper.deleteTCulturalRelicsByIds(ids);
    }

    /**
     * 删除文物信息信息
     * 
     * @param id 文物信息主键
     * @return 结果
     */
    @Override
    public int deleteTCulturalRelicsById(Long id)
    {
        return tCulturalRelicsMapper.deleteTCulturalRelicsById(id);
    }
}
